package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"pay-login/api/internal/config"
	"pay-login/payrpc/payrpcclient"
)

type ServiceContext struct {
	Config config.Config
	PayRpc payrpcclient.Payrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		PayRpc: payrpcclient.NewPayrpc(zrpc.MustNewClient(c.PayRpc)),
	}
}
